import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vant from 'vant';
import 'vant/lib/index.css';
import {get} from "./utils/local"
Vue.use(Vant);
Vue.config.productionTip = false
Vue.prototype.$checkLogin=function(){
  const userinfo=get("userinfo")
  if(!userinfo){
    router.push("/login")
    return true
  }
  return false
}

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
